import ajax from '@/utils/ajax'
import type { CustomResponse } from 'uni-ajax'
import type * as dyUserInfo from '@/api/model/dyUserInfoModel'
class DyUserInfoService {
    /**
     * 获取口令
     */
    getUserInfo(): Promise<CustomResponse<dyUserInfo.IgetUserInfoResponse>> {
      return ajax.get('/tools/dyUserInfo/getUserInfo')
    }
    /**
     * 绑定code
     */
    userInfoSaveOrUpdate(params:dyUserInfo.IUserInfoSaveOrUpdateParam): Promise<CustomResponse<null>> {
      return ajax.post('/tools/dyUserInfo/userInfoSaveOrUpdate',params)
    }
    
  }
  
  export default new DyUserInfoService()
  